package dao;

import utils.DBHelper;

import java.util.Map;

public class AddImageDao {


    public void updateimage(String image,Integer uid){
        String sql="update users set pic = ? where id = ?";
        DBHelper.update(sql,image,uid);
    }

    public Map<String,Object> queryimage(Integer uid){
        String sql= "select pic from users where id = ?";
        return  DBHelper.selectOneMap(sql,uid);
    }

}
